using Arcane.Source.Combat.Items;
using Godot;

namespace Arcane.Source.Combat;

public class PlayerEntity : Entity
{
    public Entity Enemy { get; set; }
    public override Entity GetTarget(int target) => target == 0 ? this : Enemy;

    public RuneController RuneCtrl { get; private set; }

    public PlayerEntity(int maxHealth, BaseUltraSpell ultra, StringName[] runes) : base(maxHealth, ultra)
    {
        RuneCtrl = new(Rule.COL, Rule.ROW, runes);
        AddInitialTrigger(RuneController.NAME, RuneCtrl);
    }
}